package net.lainiao.service.dao;

import net.lainiao.base.model.ShiroRole;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShiroRoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ShiroRole record);

    int insertSelective(ShiroRole record);

    ShiroRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ShiroRole record);

    int updateByPrimaryKey(ShiroRole record);

    List<ShiroRole> getAllRoles();

    List<ShiroRole> getRolesForUserId(int  userId);

    List<ShiroRole> selectAll();
}